/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pos.Driving;

import pos.Driving.Task.TaskPlayer;
import pos.ICommand;

/**
 *
 * @author Administrator
 */
public class CommandResetTask implements ICommand{
    private TaskPlayer receiver;
    public CommandResetTask(TaskPlayer receiver) {
        this.receiver=receiver;
    }
    /**
     * @return 无需返回，返回null
     */
    public Object execute(Object Param) {
        receiver.reset();
        receiver.play();
        return null;
    }
}
